package com.xm.controller;

import com.xm.service.BuyXmGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author tianqin
 * @Date 2024/7/30 14:25
 */
@RestController
@CrossOrigin
public class BuyXmDataController {
    @Autowired
    private BuyXmGoodService buyXmGoodService;
    @GetMapping("/buyXmData")
    private void buyXmGoods(String userName,String price,String goodName, String subType){
        buyXmGoodService.buyXmDataOrder(userName,price,goodName, subType);
    }
}
